package com.example.user.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.example.user.entity.SellerInfo;
import com.example.user.mapper.SellerInfoMapper;
import com.example.user.service.UserService;

/**
 * \* @author: bear
 * \* Date: 2022-04-07-15:38
 * \* describe:
 */
@Service
public class UserServiceImpl implements UserService {

	@Resource
	private SellerInfoMapper sellerInfoMapper;

	@Override
	public SellerInfo getUserInfo(String username) {
		SellerInfo userInfo = sellerInfoMapper.getUserInfo(username);
		return userInfo;
	}

	@Override
	public void inserUserInfo(SellerInfo sellerInfo) {
		sellerInfoMapper.insert(sellerInfo);
	}
}
